package main;
/*
 * CloudStego school project
 * @author lauris kruusamae
 * @author triin uudam
 * @author uku loskit
 */
import java.io.IOException;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

/**
 * Mapper implementation for image decoding
 * Just Passes along the key, value pairs
 * key - image pane
 * value - image path 
 *
 */
class DecodeMap extends Mapper<Text, Text, Text, Text> {
	
    protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {
    	// Just pass the data along so that each file would be decoded in a separate reduce task
    	context.write(key, value);
    }
}
